class Test{
	public static void main(String[] args)
	{
		System.out.println("Hello Felight");
		
		System.out.println("--------------------------");
		
		System.out.println("Addition of two numbers");
		System.out.println("sum = "+Calculator.add(5,9));
		
		System.out.println("--------------------------");
		
		System.out.println("To find area of circle");
		System.out.println("area of circle whose radius is 9 = 	"+Calculator.area(9));
		
		System.out.println("--------------------------");
		
		System.out.println("To convert fahrenheit to celcius");
		double fahrenheit=100;
		double celsius=(5.0/9)*(fahrenheit-32);
		System.out.println("fahrenheit "+fahrenheit+" is "+celsius+" in celsius");
		
		System.out.println("--------------------------");
		
		System.out.println("Type casting");
		double d=16.7;
		float  f=6;
		System.out.println("before typecasting d="+d+" f="+f);
		int m=(int)f;
		float f1=(float)d;
		System.out.println("after typecasting d="+f1+" f="+m);
		
		System.out.println("---------------------------");
		
		System.out.println("increment operation");
		int k=10;
		System.out.println(k++);
		System.out.println(++k);
		System.out.println(k++);
		
		System.out.println("---------------------------");
		
		System.out.println("String to integer");
		String empid="1021";
		int l=Integer.parseInt(empid);
		System.out.println(l);
		
		System.out.println("---------------------------");
		
		System.out.println("Determining a leap year");
		Calculator.leap(2012);
		
		System.out.println("------------------------------");
	
		System.out.println("To find odd or even");
		Calculator.oddev(13);
		
		System.out.println("----------------------------------");
	
		System.out.println("To print text 100 times using while loop"); 
		int count=1;
		while(count<=100)
		{
			System.out.println("i love felight "+count);
			count++;
		} 	
		
		System.out.println("-----------------------------------");
	
		System.out.println("To print text 100 times using do while loop");
		int count1=1;
		do{
			System.out.println("i love felight "+count1);
			count1++;
		}while(count1<=100);
		System.out.println("----------------------------------");
	
		System.out.println("To count even and odd numbers between 100 to 200");
		Calculator.countEvenOdd(100,200);
		
		System.out.println("----------------------------------------");
	
		System.out.println("To find summation of numbers between 0 to 100");
		int summ=0;
		for(int i=0;i<=100;i++)
			summ+=i;
		System.out.println("Summation of numbers b/w 0 to 100 is "+summ);	
		
		System.out.println("---------------------------------------");
	
		System.out.println("To find prime numbers from 0 to 100");
		
		
		int[] array= {10,12,14,21};
		
		
		System.out.println("sum of three num = "+Calculator.add3(14,12,35));
		
		System.out.println("sum of array = "+Calculator.addarr(array));
		
		System.out.println("The fibbonacci series of 10 numbers is:");

		int[] res = Calculator.fibb(10);
		for(int i=0; i<res.length; i++)
			System.out.println(res[i]);
		
		System.out.println("The series of even numbers from 0 to 100 are :");									int[] res1 = Calculator.even(0,100);
		for(int i=0; i<res1.length; i++)
			System.out.println(res1[i]);
		
		System.out.println("The series of odd numbers from 0 to 100 are :");
		Calculator.odd();
		System.out.println("The prime numbers between 0 to 100 are" );
		Calculator.prime(0,100);
		System.out.println("The addition of given two matrix is : ");
		Calculator.matAdd();
		System.out.println();
		System.out.println("The multiplication of two matrix is : ");
		Calculator.matMul();
		System.out.println();
	
		System.out.println("Bubble Sort");
		int[] n = {45,21,41,12,33};
		Calculator.bubbleSort(n);
		for(int i=0;i<n.length;i++)
			System.out.println(n[i]);
	}
}